<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php

include 'config.php';


$idMenu = 6;
$qr = mysql_query("SELECT * FROM info_bk WHERE idMenu='{$idMenu}' AND AnHien=1");
while($row  = mysql_fetch_array($qr)){
	$menu_id = ',3,';
	$name = $row['TieuDe']; echo $row['TieuDe'].'<br />';
	$name_rewrite = $row['TieuDe_KhongDau'];
	$url_hinh = $row['urlHinh'];
	$description = $row['TomTat'];
	$content = $row['noidung'];
	$date_create = $row['Ngay'];
	$date_update = $row['Ngay'];
	$status = $row['AnHien'];
	$metaKeyword = $row['TieuDe'];
	$other = 0;
	$lang = 'vi';
	$user_create = 'admin';
	$user_update = '';
	$delete = 0;
	
	mysql_query("INSERT INTO info VALUES (
		null,
		'{$name}',
		'{$name_rewrite}',
		'{$url_hinh}',
		'{$description}',
		'{$content}',
		'{$date_create}',
		'{$date_update}',
		'{$status}',
		'{$metaKeyword}',
		'{$other}',
		'{$lang}',
		'{$menu_id}',
		'{$user_create}',
		'{$user_update}',
		'{$delete}'
	)");
}
?>